<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>

	
<title>悦章科技机构平台</title>	

	
<!--内容样式-->
<link rel="stylesheet" href="__PUBLIC__/Home/css/style.css" />
<link rel="stylesheet" href="__PUBLIC__/Home/css/page.css" />
	
</head>

<body>

	
	<div class="main">
	
	<include file="menu" />
		
		
		
		<!--  右侧内容  -->
		<div class="content">
			
			
			<div class= "ct-title">
				<div class="ctt-bt">直播课管理</div>
				<div class="ctt-r">
					<form class="cttr-bd" action="" method="POST">
						<input type="text" placeholder="请输入课程名称" class="cttrb-wb" name="name" value="{$name}">
						<select class="cttrb-xl" name="status">
							<option>选择状态</option>
							<option value="1" <if condition="$status eq 1">selected</if>>预开播</option>
							<option value="2" <if condition="$status eq 2">selected</if>>直播中</option>
							<option value="3" <if condition="$status eq 3">selected</if>>已结束</option>
						</select>
						<div class="cttrb-sj">
							<input type="date" name="start_time" value="{$start_time}">
							<img src="__PUBLIC__/Home/images/img_zhi.png" />
							<input type="date" name="end_time" value="{$end_time}">
							<div class="divclear"></div>
						</div>
						<button class="cttrb-cx" type="submit">查询</button>
						<a href="{:U('Operate/addLiveCourse')}" class="cttrb-xz">新增</a>
						<div class="divclear"></div>
					</form>
					<div class="divclear"></div>
				</div>
				<div class="divclear"></div>
			</div>
			
			<div class="ct-table">
				<table width="100%" border="0">
					<tbody>
						<tr>
							<th scope="col" width="28%" style="border-top-left-radius: 10px;">课程名称</th>
							<th scope="col" width="6%">状态</th>
							<th scope="col" width="8%">单价</th>
							<th scope="col" width="10%">创建时间</th>
							<th scope="col" width="13%">开播时间</th>
							<th scope="col" width="8%">开播时长</th>
							<th scope="col" width="8%">实际开播时长</th>
							<th scope="col" width="7%">报名人数</th>
							<th scope="col" width="12%" style="border-top-right-radius: 10px;">操作</th>
						</tr>
						<volist name="_list" id="item">
							<tr>
							  <td>
								<div class="ctt-img ctt-img2">
									<img src="{$item['img']}" />  
								</div>
								<div class="ctt-kcm">{$item['name']}</div>
								<div class="divclear"></div>
							  </td>
							  <td>{$item['state']}</td>
							  <td>￥{$item['price']}元/人</td>
							  <td>{$item['create_time']}</td>
							  <td>{$item['live_time']}</td>
							  <td>{$item['live_time_slot']}</td>
							  <td>{$item['real_live_duration']}</td>
							  <td>{$item['enlist_count']}</td>
							  <td><a href="{:U('Operate/live_show')}">开播</a><a href="{:U('Operate/live_detail',array('id'=>$item['id']))}">详情</a><a href="{:U('Operate/live_del',array('id'=>$item['id']))}">删除</a></td>
							</tr>
						</volist>
					</tbody>
				</table>
			</div>
			
			<div class="page">
	            {$_page}
	        </div>
			
			
			
		</div>
		
		
		
	</div>
	
	
	
</body>
</html>
